package com.learn.ensum;

public class EnsumTest{
    public static void main(String[] args) {
        EnumTest spring = EnumTest.SPRING;
        System.out.println(spring);
        System.out.println(spring.getDesc());
    }
}

enum  EnumTest {
    SPRING("SPRING","春天"),
    SUMMER("SUMMER","夏天"),
    QT("QT","秋天"),
    DT("DT","冬天");

    String jjie;
    String desc;

    EnumTest(String jjie, String desc) {
        this.jjie = jjie;
        this.desc = desc;
    }

    public String getJjie() {
        return jjie;
    }


    public String getDesc() {
        return desc;
    }

}
